﻿@model MiniScrum.Models.User
@{
    ViewBag.Title = "Details";
}
<h2>
    Details</h2>
<fieldset>
    <legend>User</legend>
    <div class="display-label">
        UserName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserName)
    </div>
    <div class="display-label">
        FullName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FullName)
    </div>
    <div class="display-label">
        Password</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Password)
    </div>
    <div class="display-label">
        Email</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Email)
    </div>
    <div class="display-label">
        Roles</div>
    <div>
        <ul id="roles">
            @if (Model.Roles != null)
            {
                foreach (var role in Model.Roles)
                {
                <li>@role.RoleName</li>
                }
            }
        </ul>
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |
    @Html.ActionLink("Back to List", "List")
</p>
